//
//  Myforget.m
//  BigTyre
//
//  Created by 张钧 on 2017/3/27.
//  Copyright © 2017年 Lemon. All rights reserved.
//

#import "Myforget.h"
#import "MySigninViewController.h"
@interface Myforget ()
{
    UITextField * zhTF;
    UITextField * mmTF;
}
@end

@implementation Myforget
-(void)viewWillAppear:(BOOL)animated
{
    self.navigationController.navigationBar.hidden=NO;
    
}
- (void)viewDidLoad {
    [super viewDidLoad];
  
    //账号输入框
    zhTF=[[UITextField alloc]initWithFrame:CGRectMake((self.view.frame.size.width-300)/2, (self.view.frame.size.height-50)/2, 300, 40)];
    //    zhTF.backgroundColor=[UIColor blueColor];
    zhTF.placeholder=@"请输入手机号";
    //    zhTF.layer.shadowColor=[UIColor redColor].CGColor;
    //    zhTF.layer.shadowOpacity=5.0;
    //    zhTF.layer.shadowRadius=5.0;
    //    zhTF.layer.shadowOffset=CGSizeMake(10, 10);
    zhTF.layer.masksToBounds=YES;
    zhTF.layer.cornerRadius=15;
    zhTF.layer.borderWidth=0.5;
    zhTF.keyboardType=UIKeyboardTypeNumberPad;
    zhTF.borderStyle=UITextBorderStyleRoundedRect;
    [self.view addSubview:zhTF];
    
    UIView * tfView1=[[UIView alloc]initWithFrame:CGRectMake(0, 0, 10, 0)];
    zhTF.clearButtonMode=UITextFieldViewModeWhileEditing;
    zhTF.leftView=tfView1;
    zhTF.leftViewMode=UITextFieldViewModeAlways;
    
    UIView * tfview2=[[UIView alloc]initWithFrame:CGRectMake(0, 0, 40, 0)];
    tfview2.backgroundColor=[UIColor blackColor];
    zhTF.rightView=tfview2;
    zhTF.rightViewMode=UITextFieldViewModeAlways;
    UIButton * hq=[[UIButton alloc]initWithFrame:CGRectMake(0, 0, 0, 0)];
    [tfview2 addSubview:hq];
    //密码输入框
    mmTF=[[UITextField alloc]initWithFrame:CGRectMake((self.view.frame.size.width-300)/2, (self.view.frame.size.height+50)/2, 300, 40)];
    UIView * mmView=[[UIView alloc]initWithFrame:CGRectMake(0, 0, 10, 0)];
    mmTF.leftView=mmView;
    mmTF.leftViewMode=UITextFieldViewModeAlways;
    
    mmTF.placeholder=@"请输入新密码";
    mmTF.layer.cornerRadius=15;
    mmTF.layer.borderWidth=0.5;
    mmTF.layer.masksToBounds=YES;
    mmTF.borderStyle=UITextBorderStyleRoundedRect;
    //    mmTF.backgroundColor=[UIColor cyanColor];
    [self.view addSubview:mmTF];
    //完成按钮
    UIButton * button=[[UIButton alloc]initWithFrame:CGRectMake((self.view.frame.size.width)/2-50,( self.view.frame.size.height)/2+100, 100, 40)];
    [button setTitle:@"完成" forState:0];
    [button setTitleColor:[UIColor whiteColor] forState:0];
    [button setBackgroundColor:[UIColor lightGrayColor]];
//    [button addTarget:self action:@selector(signin) forControlEvents:UIControlEventTouchUpInside];
    button.layer.masksToBounds=YES;
    button.layer.cornerRadius=10;
    [self.view addSubview:button];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
